package com.example.chatrecommendation.bean.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 课程表
 * @Date 2024-03-07 17:23:10
 * @author Jasmine-drs
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("course")
@ApiModel(value="Course对象", description="课程表")
public class Course implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotBlank(message="[课程名]不能为空")
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("课程名")
    private String name;

    @NotNull(message="[所属专业的id]不能为空")
    @ApiModelProperty("所属专业的id")
    private Integer majorId;

    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("课程封面")
    private String cover;

    @ApiModelProperty("课程简介")
    private String description;

    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("教师团队")
    private String teacher;

    @ApiModelProperty("课程标准")
    private String standard;

    @ApiModelProperty("考核方式")
    private String examine;

    @NotNull(message="[创建时间]不能为空")
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @NotNull(message="[修改时间]不能为空")
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
